package com.clw.form;

import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * Created by Administrator on 2017-12-29.
 */
@Data
public class BuyerForm {

    private Integer id;


    @NotEmpty(message = "请输入完整信息")
    private String name;

    @NotEmpty(message = "请输入完整信息")
    private String phone;

    @NotEmpty(message = "请输入完整信息")
    private String address;

    @NotEmpty(message = "请输入完整信息")
    private String postNumber;

    @Email(message = "请输入正确邮箱")
    @NotEmpty(message = "请输入完整信息")
    private String email;
}
